package com.xneure.enging.ui.element.tree;

import com.xneure.enging.ui.UiElement;
import com.xneure.utils.bean.GUID;

public class UiTreeItem extends UiElement {
	private GUID treeId;
	private String title;

	public UiTreeItem(UiElement par) {
		super(par);
		setProperty("class", "treeItem");
		if (par instanceof UiTree) {
			treeId = ((UiTree) par).getId();
		} else if (par instanceof UiTreeItem) {
			treeId = ((UiTreeItem) par).treeId;
		} else {
		}
	}

	public GUID getTreeId() {
		return treeId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
